# ODROID-X/X2/U2/U3 Mali GL Driver
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>

buildarch=4

pkgname=odroid-libgl
pkgver=r4p0
pkgrel=2
arch=('armv7h')
pkgdesc="ODROID-X/X2/U2/U3 Mali GL Driver"
url="http://www.hardkernel.com/"
license=('Proprietary')
depends=('mesa-libgl')
source=("http://archlinuxarm.org/builder/src/mali-${pkgver}.txz"
        'mali-odroid.conf')
md5sums=('f88d6db219d2edfbbf7b2e4e816e4d57'
         '40f5104200cfceb12b4623d219646d4e')

package() {
  install -d "${pkgdir}"/usr/lib/mali-egl
  install -d "${pkgdir}"/etc/ld.so.conf.d
  cp -a mali/lib* "${pkgdir}"/usr/lib/mali-egl
  install -Dm644 mali-odroid.conf "${pkgdir}"/etc/ld.so.conf.d/mali-odroid.conf
}
